I have a class called Titlebar inherited from QWidget. The following code goes inside the constructor of Titlebar class:
m_queueBtn = new QToolButton;
m_serverToolBar = new QToolBar;
m_serverToolBar->addWidget(m_queueBtn);
QPoint pos = m_queueBtn->pos();
While printing m_queueBtn->pos()
, it's always showing the same value instead of the resize or move.