Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 456.9k Posts
  • QTabWidget, persistent - visible - tab ?

    Unsolved qtabwidget qtabbar
    1
    0 Votes
    1 Posts
    281 Views
    No one has replied
  • QMap of QScopedPointer

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    C
    You could also use a copyable smart pointer like QSharedPointer if threading issues are considered.
  • Error All essential packages ... in Android SDK

    Solved
    2
    0 Votes
    2 Posts
    279 Views
    S
    I solved, I tried to install the files according to the Qt instructions but failed. I installed Android Studio and installed all the components. [image: e38963c3-8219-4c11-aa9b-aee4d85c59b0.png]
  • QImage(img.data,...) out of scope - img.data gets deleted when QImage is destroyed

    Unsolved
    13
    0 Votes
    13 Posts
    605 Views
    SGaistS
    You are not doing the resizing with OpenCV.
  • Problem with my class and QProcess

    Solved
    6
    0 Votes
    6 Posts
    366 Views
    SGaistS
    Hi, A full rebuild is not strictly required however running qmake before building is when adding or removing the Q_OBJECT macro as moc must do its job when added and otherwise not run when removed. But when I doubt, full rebuild often helps.
  • No Qtsql.framework dylib file

    Unsolved
    17
    0 Votes
    17 Posts
    895 Views
    SGaistS
    Which version are you building from ?
  • Qt6, QLoaderNetwork and http requests

    Solved
    6
    0 Votes
    6 Posts
    308 Views
    bunjee207B
    My bad, it seems the issue was on my side. I'm closing this.
  • QListWidget not updating

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    I
    @JonB You've done more than enough, thanks Time to read I guess haha
  • Slot gets not invoked

    Solved
    8
    0 Votes
    8 Posts
    589 Views
    SGaistS
    @makopo What was the issue ?
  • How to plot Barchart using database queries

    Unsolved
    2
    0 Votes
    2 Posts
    308 Views
    JonBJ
    @LT-K101 said in How to plot Barchart using database queries: implementing this using the values from the sql queries seem confusing. What does this mean? What are you actually asking us?? The fact that you get data from a database has no connection to code for adding bars on a chart. Your series appending looks OK, only you know what is in first_value etc. and how you got it from the database. I don't see what you think someone else can say. Break your problem into two: Get the bar/pie chart right by testing with sample hard-coded values, no database. Get your data from database queries, printing out the results, no charts. Then just connect the two bits of code.
  • Serial port buffer Size

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    mrjjM
    Hi Depending on the SENDING hardware, the payload will come in one or more "waves"/readAll() So once recievedData.size() is the expected size, all data has been read. There is no setting to avoid this. Its how it works.
  • QComboBox FramelessWindowHint not work on MacOS

    Unsolved
    1
    0 Votes
    1 Posts
    326 Views
    No one has replied
  • QMediaPlayer will cause window not response while stop play video.

    Unsolved
    3
    0 Votes
    3 Posts
    233 Views
    MozzieM
    @SGaist Thank you
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Weird layout behaviour

    Unsolved
    1
    0 Votes
    1 Posts
    108 Views
    No one has replied
  • How to use cut/copy/paste QKeySequence actions?

    Unsolved
    6
    0 Votes
    6 Posts
    596 Views
    SGaistS
    Use actions and connect them to the cut, copy, paste slots.
  • macOS Monterey 12.1, broken builds after update.

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    artwawA
    @SPlatten I don't know, really. It works on my iMac. I would, however, recommend to reinstall the command line tools - this would trigger reinstallation of the SDK
  • problem with QNetworkAccessManager

    Unsolved
    7
    0 Votes
    7 Posts
    635 Views
    Christian EhrlicherC
    @millo98 said in problem with QNetworkAccessManager: the program build but don't run with 'Process finished with exit code -1073741515 (0xC0000135)' Use a debugger to see where it crashes... /edit: 0xC0000135 looks like a missing dll, can you start debugging at all?
  • How to add data to SignalTransition in StateMachine

    Unsolved
    3
    0 Votes
    3 Posts
    458 Views
    P
    in my example i have 3 states, so i need make something like: connect(state1, &MyState::transitionToState2Required, state2, &MyState::onTransitionExecuted); connect(state1, &MyState::transitionToState3Required, state3, &MyState::onTransitionExecuted); connect(state2, &MyState::transitionToState1Required, state1, &MyState::onTransitionExecuted); connect(state2, &MyState::transitionToState3Required, state3, &MyState::onTransitionExecuted); connect(state3, &MyState::transitionToState1Required, state1, &MyState::onTransitionExecuted); connect(state3, &MyState::transitionToState2Required, state2, &MyState::onTransitionExecuted); but if i have about 10 states I'll need to create about 100 such connections. may be there is any general mechanism? as i understand, if make like this: connect(state1, &MyState::transitionToState2Required, state2, &MyState::beforeTransitionExecuted); state1->addTransition(state1, &MyState::transitionToState2Required, state2); slot beforeTransitionExecuted will called before transition and i can save data in target slot? and if i make: state1->addTransition(state1, &MyState::transitionToState2Required, state2); connect(state1, &MyState::transitionToState2Required, state2, &MyState::onTransitionExecuted); transition will be executed early and only then onTransitionExecuted will be called? so it's better to use first variant?
  • Addressbook example: separation of concerns

    Unsolved
    11
    0 Votes
    11 Posts
    836 Views
    Christian EhrlicherC
    @nouwaarom said in Addressbook example: separation of concerns: Then the view will call TableModel::setData for these columns when they are double clicked and their value is updated. So what's different from the example then? That a separate widget instead a view updates the data? Who says that 'the view' must be a single widget?