Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • How to access Widgets from an include-file containing functions

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    K
    Thank you, mpergand and pi45m4 , for your input. Now I've got to ponder this...
  • how to terminate qthread?

    Unsolved
    9
    0 Votes
    9 Posts
    693 Views
    J.HilkJ
    @Trojan-Arun than you'll have to(should) do it properly, with a worker class, and a QThread onButton pressed you then simply call start on the thread and on 2nd press you call stop. You'll have to remove my deleteLater connect and manage that yourself in the destructor of your parent class.
  • Zipping a file or folder using zlib library

    Unsolved
    4
    0 Votes
    4 Posts
    4k Views
    KiraK
    Ok thanks !!
  • 0 Votes
    2 Posts
    613 Views
    C
    "make module-qtbase" worked!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • QMenu position in QGraphicsScene

    Solved
    5
    0 Votes
    5 Posts
    566 Views
    J
    Thanks a lot, indeed, it was the issue you highlight. Your solution fits my needs and it is more simple than I expected !
  • Pauses/stop QObjects inside QThread event loop

    Unsolved qobject qthread qeventloop
    9
    0 Votes
    9 Posts
    2k Views
    SGaistS
    QObject has no event loop, the event loop is in QCoreApplication and siblings. You can not just stop the one from you main application. As for QThread you can interrupt the thread but I'm really not sure that's the best way to handle your situation. From the looks of it, you seem to have to create a queue of the events received and store these there while in pause mode and then empty that queue on restart if that makes sense.
  • How to convert quint64 to 4 byte QByteArray

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    I
    @mpergand Perfect. Thank you very much.
  • Initialization of QPalette.

    Solved
    2
    0 Votes
    2 Posts
    279 Views
    Pl45m4P
    @ankit-thakar said in Initialization of QPalette.: What is the difference in both initialization? The first one grabs the current palette from m_label , sets the color to color and sets the edited palette to the label again. Everything else will be the same as m_labels palette. The second one creates a new palette with default parameters and color color (No additional brush, shadow or anything else)
  • VS 2019 & Qt 5.13.2

    Solved
    2
    0 Votes
    2 Posts
    554 Views
    V
    I solved the problem as following instruction; Delete local user profile by admin account Login again, it will recreate local user profile Open VS Install Qt extension Create different temporary Qt profile Change project's Qt profile to new one and apply Rechange Qt profile to back/orginal one Delete temporary Qt profile that all !
  • LNK1168: cannot open blah.exe for writing

    6
    0 Votes
    6 Posts
    10k Views
    H
    @hskoglund It works. Thank you !!
  • QTableView: select row with a specific id

    Solved
    6
    0 Votes
    6 Posts
    3k Views
    Christian EhrlicherC
    Maybe QAbstractItemModel::match() - but custom stuff is faster I would guess
  • double free or corruption (out) why

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    Christian EhrlicherC
    @pauledd: Nice to hear, can you please mark the topic as solved, thx :)
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    27 Views
    No one has replied
  • how to calculate the centro id of rectilinear polygon

    Unsolved
    3
    0 Votes
    3 Posts
    328 Views
    Chris KawaC
    Have you tried wikipedia?
  • 0 Votes
    4 Posts
    2k Views
    E
    @mrjj I see, thank you. I'm going for that route then
  • Printing to console from the project file?

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    L
    @dheerendra Thanks it works
  • Create tabs for QTabWidget, but do not display all tabs.

    Solved
    2
    0 Votes
    2 Posts
    214 Views
    Chris KawaC
    I'd like to just create, say Tab2, but not actually display this tab. Simply QWidget* tab2 = new Tab2(). But somehow have a handle to the tabs I do not add yet The pointer is a"handle". so that I can add and remove them at will. Just use addTab/removeTab as in your example whenever you need.
  • Realm database in Qt. How?

    Solved
    7
    0 Votes
    7 Posts
    961 Views
    Pablo J. RoginaP
    @bogong Issue closed. so go and mark the issue as solved. Thanks.
  • QEvent, QEventLoop, batch process events?

    Unsolved qevent qeventloop
    8
    0 Votes
    8 Posts
    2k Views
    SGaistS
    Even two if you take the QtScxml module. Well, I am not behind the design of the system so I can just offer some thoughts. I would say that if you need that level of control of the event loop, you might not be using the right tool for your use case.