Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Qt5 QSplitter : slow performance with OpenGL

    3
    0 Votes
    3 Posts
    4k Views
    F
    Hi all, the regression is done and verified; https://bugreports.qt-project.org/browse/QTBUG-27734 Change By : Samuel Rødal (14/Nov/12 3:21 PM) Status : Verified Fix Version/s: 5.0.0 RC 1
  • Connecting action to QPushButton and Slots questions

    2
    0 Votes
    2 Posts
    2k Views
    C
    I have 2 methods in mind: METHOD 1: Signal-Slot way In you Accounts.h, the functions that you need should be declared as "public slots". @public slots: void deposit(); void withdraw(); //etc@ Then in your ATMWindow, use connect() @Accounts *accounts=new Account();//just guessing if your class name is "Accounts" QOBject::connect(depositbutton,SIGNAL(clicked(),accounts,SLOT(deposit())); QOBject::connect(withdrawbutton,SIGNAL(clicked(),accounts,SLOT(withdraw()));@ METHOD 2: Just a public function In you Accounts.h, the functions that you need should be declared as "public". @public: void deposit(); void withdraw(); //etc@ Suppose you are using .ui file in Qt Creator, just right click onto a button then look for "go to slot" then find "clicked". It will generate a function for you where you can call the functions: @void ATMWindows::on_depositbutton_clicked() //just an example... this should be generated by Qt Creator { accounts->deposit(); //make sure youu have declared accounts in the header file so that it can be accessed globally [in your class] }@
  • [solved]How using and enjoying JSON in Qt?

    2
    0 Votes
    2 Posts
    1k Views
    M
    Not quite sure what you're asking, but I've been pretty happy with "QJson":http://qjson.sourceforge.net/ and Qt5 introduces built-in JSON processing with the "QJson* classes.":/doc/qt-5.0/classes.html#j
  • How to use scroll bar inside a DockWidget [Solved]

    4
    0 Votes
    4 Posts
    3k Views
    M
    Glad it's working! Be sure and edit your initial post to add [Solved] to the thread title. Thanks!
  • 0 Votes
    7 Posts
    2k Views
    A
    I had to run the regsvr program as an administrator.
  • [SOLVED] Row height in QTreeView

    6
    0 Votes
    6 Posts
    10k Views
    S
    bq. Strange. I can see the image. Maybe this link works:http://s3.imgimg.de/uploads/01557c97e3png.png I figured out the the url link in blocked by the provider in my country. So the image as well as the link both does not open for me. Anyhow i used tor browser to view the image :D @Gerolf +1 for that :)
  • [Solved] QTgraphics using Designer

    6
    0 Votes
    6 Posts
    2k Views
    S
    Great, Kindly edit your first post and prepend "Solved" to it :) Happy Coding.
  • [Resolved] Qt, Windows... many problems...

    6
    0 Votes
    6 Posts
    2k Views
    D
    ok !
  • QTableView and its model

    5
    0 Votes
    5 Posts
    2k Views
    S
    Looks like alexisdm posted the solution while I was eating dinner having an epiphany. Thanks for the answer. That was exactly it.
  • QHeaderView drag & drop, with a Model

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Jpeg support on different systems

    6
    0 Votes
    6 Posts
    2k Views
    S
    Anyone ? It seems macdeployqt is not doing anything with libqjped.dylib, when it should, but I really understand nothing about this.
  • Change QLineEdit text cursor shape

    Solved
    5
    0 Votes
    5 Posts
    12k Views
    ?
    Why I can't apply this solution on a QTextEdit's cursor?
  • The Qt SDK Updater doesn't find any updates

    12
    0 Votes
    12 Posts
    4k Views
    B
    Almost sure: you have to set the toolchain. Tools menu > Options > Build & Run > Qt Versions and Toolchains tabs. Here you can set up the compiler and similar things.
  • Why my TableWidget is not shown in TabWidget?

    2
    0 Votes
    2 Posts
    1k Views
    C
    I tried your code and modified the first line: @QWidget *wid = ui->tabWidget->widget(Index);@ since I used a form. All I can say is there is actually nothing wrong with your code. Did you modify your QTableWidget in any way? e.g. you set its frame style to "NoFrame"? Tried to test it this way since QTabWidget's background color is similar to QTableWidget's.... I am thinking it might have been "camouflaged" since you were saying other widgets worked. Edit: You can use QWidget::isVisible to check if your tabwidget is shown
  • Control view updates

    2
    0 Votes
    2 Posts
    1k Views
    C
    Well I added a simple timer to control the refreshes, not sure if it's a decent method but it solved my issues.
  • [Resolved] ow install/Download "PHONON4.DLL"?

    8
    0 Votes
    8 Posts
    4k Views
    D
    Thanks I found, I just search on windows "C:" by filename! [quote author="Code_ReaQtor" date="1352812670"]QtSDK\Desktop\Qt\4.8.1\mingw\plugins\phonon_backend\ That should be present there. I found my dlls on all my Qt versions [from Qt4.8.1 (mingw,msvc2008,msvc--2010) to Qt4.8.3(mingw,msvc2008,msvc2010)] .[/quote]
  • [Really solved now!] Can not draw with OpenGL on QGLWidget

    11
    0 Votes
    11 Posts
    8k Views
    D
    See https://gitorious.org/eventmanager/eventmanager/blobs/master/src/libs/utils/TFancyTabWidget.cpp and https://gitorious.org/eventmanager/eventmanager/blobs/master/src/libs/utils/TFancyTabWidgetContent.cpp
  • Touch support in windows 7

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QTextEdit doesnt display text

    1
    0 Votes
    1 Posts
    809 Views
    No one has replied
  • Qt SDK for Qt 5.0

    5
    0 Votes
    5 Posts
    6k Views
    sierdzioS
    Ah, so you are on Windows. In that case the biggest problem, (if you are not content with MSVC) is the fact that minGw is not working very well. The support will come for sure, but in fact the compiler is a problem bigger than the actual library. At least that is what I heard - I myself use Linux, and on rare occasions when I need windows, I use MSVC.