Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.3k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • QTcpSocket transaction not working properly

    Unsolved
    3
    0 Votes
    3 Posts
    428 Views
    VRoninV
    Maybe this example might be helpful: https://wiki.qt.io/WIP-How_to_create_a_simple_chat_application
  • keyPressEvent subclass works only in debug

    Unsolved
    10
    0 Votes
    10 Posts
    727 Views
    M
    @qwasder85 said in keyPressEvent subclass works only in debug: My guess is the keyboard focus. Try setFocus() on your dialog when it opens. Yes, it's definitely related to the focus. It's strange that the default event works in any case.
  • change disabled background color QCheckbox?

    Solved qcheckbox background color
    4
    0 Votes
    4 Posts
    4k Views
    JonBJ
    @pauledd You mean the background color "overspill" to right & bottom? I don't know but you might play with border-... or padding-... (I'm thinking margin- does not use background color, but I might be wrong) having a width/transparency/grey....
  • How to access Widgets from an include-file containing functions

    Solved
    6
    0 Votes
    6 Posts
    949 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
    674 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
    548 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
    533 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
    1k Views
    I
    @mpergand Perfect. Thank you very much.
  • Initialization of QPalette.

    Solved
    2
    0 Votes
    2 Posts
    265 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
    513 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
    308 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