Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Pass values between screens . help-me

    2
    0 Votes
    2 Posts
    759 Views
    SGaistS
    Hi, You can use "QInputDialog::getInt":http://doc.qt.io/qt-5/qinputdialog.html#getInt to retrieve a number from the user and then create a little QDialog with a QLabel where you set the text to the value you got from the QInputDialog.
  • QOpenGLWidget or QWindow/QOpenGLFunctions

    2
    0 Votes
    2 Posts
    941 Views
    SGaistS
    Hi, I'd say yes. It's possible with QGLWidget so I don't see any reason it wouldn't with QOpenGLWidget
  • QToolTip doesn't update when text is changed while tooltp is shown

    2
    0 Votes
    2 Posts
    1k Views
    D
    1 Not a bug 2 I don't know about by design, but definitely not an intended use model 3 the ToolTip object used by the Widget is not accessible. From looking at QToolTip docs it is just a set of static methods. 4 Other ideas I have not tried this personally. Try sending a QHelpEvent to the widget after you change the text you want displayed. You might need to rewrite the event handler to remove the old one first.
  • 0 Votes
    7 Posts
    3k Views
    A
    Thanks all, The issue got resolved. I hope the below case is the specific reason for the issue. I gave date input in the format (yyyy-MM-dd), ie query.bindValue(":dob", client.dob.toString(yyyy-MM-dd)); It works fine... :) I came to know that MS Sql takes date in the particular format only. I not certain about this, however it works fine now...
  • Bluetooth communication for windows

    4
    0 Votes
    4 Posts
    1k Views
    Chris KawaC
    I know little about bluetooth, sorry.
  • QT - go, no go? General questions?

    6
    0 Votes
    6 Posts
    2k Views
    S
    [quote author="JKSH" date="1419087818"]Hi, Which features do you need to use? If you don't need the enterprise features, you could get the community version. Click the leftmost "Download" link at http://www.qt.io/download/ I don't know much about the Enterprise packages, but the Community edition downloads come in multiple flavours, including 32-bit Windows installers.[/quote] After looking I do think community will work at least initially then as we get closer I can convince them perhaps into professional or maybe even enterprise. Thanks for the input!
  • [SOLVED]Can`t link FMOD in Windows.

    13
    0 Votes
    13 Posts
    5k Views
    H
    Thank you, mr.Chris Kawa. I was able to make it work in Wine + MinGW. Apparenlty Ive read there were C++ ABI problems, so Ive changed my function to the pure C API they support like that: @ bool FMPlayer::systemInit(const char *fname, int len) { FMOD_CREATESOUNDEXINFO *info = new FMOD_CREATESOUNDEXINFO(); info->cbsize = sizeof(FMOD_CREATESOUNDEXINFO); info->length = len; FMOD_CHANNEL *channel; //FMOD::Channel* channel; //FMOD::System* system; //FMOD::Sound* sound; //FMOD::System_Create(&system); FMOD_SYSTEM *system; FMOD_SOUND *sound; FMOD_System_Create(&system); FMOD_System_Init(system, 32, FMOD_INIT_NORMAL, 0); //system->init(32, FMOD_INIT_NORMAL, 0); if ( FMOD_OK == ( FMOD_System_CreateSound(system, fname,FMOD_OPENMEMORY, info, &sound)) ) { // if ( FMOD_OK == system->createSound(fname, // FMOD_OPENMEMORY, info, &sound) ) { FMOD_Sound_SetMode(sound, FMOD_LOOP_OFF); // sound->setMode(FMOD_LOOP_OFF); // system->playSound(sound, false, 0, &channel); FMOD_System_PlaySound(system, sound, false, 0, &channel); return true; } else { return false; } } @ Ive left the commented code to see what Ive changed. Now it plays the desired sound... Whew. That was nasty. I got worried I wont be able to fix it. Thanks for the help. Ill avoid and whitespaces from now on. Regards from a newbie coder like me :)
  • Porting from Windows to OSX and iOS

    Locked
    3
    0 Votes
    3 Posts
    853 Views
    K
    You are right. Your topic fits better in the other forum. A moderator could have moved this topic over to the forum. Anyway, closing this thread.
  • QGraphicsScene constantly changing/updating for no reason

    3
    0 Votes
    3 Posts
    740 Views
    T
    I checked the region now and it is always empty unless I actually move an item around: @ void MainWindow::sceneChanged(const QList<QRectF>& region) { static int i = 0; qDebug() << "Update Nr.: " << ++i; qDebug() << "Region = " << region << endl; }@ Gives the following when idling: @ bUpdate Nr.: 883 Region = () @ And this when I actually move around an item: @ Update Nr.: 881 Region = (QRectF(102.5,210.5 201x21), QRectF(103.5,211.5 201x21)) @ Any ideas?
  • Developing a Desktop application for interaction with the outer world

    3
    0 Votes
    3 Posts
    688 Views
    P
    So you mean to say that using the QSerialPort I can manage to communicate over the serial port to my board.
  • How to put SVG as button background

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Bluetooth communication over 'Qt for Android'

    5
    0 Votes
    5 Posts
    1k Views
    M
    Thanks for your reply.
  • How to create tabbed browsing like firebox in qt

    1
    0 Votes
    1 Posts
    462 Views
    No one has replied
  • Get the directory of a file in a URL.

    7
    0 Votes
    7 Posts
    4k Views
    X
    [quote author="SGaist" date="1419033756"]In your use case, do you always have something like: @“http://example.com/bleh/blah/plus_something_else/myBar.exe"@ ?[/quote] Nope. Some files are on "http://example.com/bleh/blah", others in "http://example.com/bleh/blah/something_else" and "something_else2". For now, since I know what the name of the 3 different subfolders are, I did this: @QString FileDownloader::saveFileName(const QUrl &url) { QString path = url.path(); QString basename; QString finalPath; if(path.contains("/SubDir1")) finalPath = "SubDir1/"; else if(path.contains("/SubDir2")) finalPath = "SubDir2/"; else if(path.contains("/SubDir3")) finalPath = "SubDir3/"; if(path.contains(finalPath, Qt::CaseInsensitive)) { if(!QDir(finalPath).exists()) QDir().mkdir(finalPath); basename = url.fileName().prepend(finalPath); } else { basename = url.fileName(); } qDebug() <&lt; basename; if (QFile::exists(basename)) { // already exists, overwrite QFile::remove(basename); } return basename; }@
  • How can I toggle 'StaysOnTop'

    3
    0 Votes
    3 Posts
    950 Views
    D
    Note: I reproduced this on Windows 7 but on Linux works as expected.
  • 0 Votes
    7 Posts
    1k Views
    K
    Thank you SGaist. It is good to know this is being taken care of.
  • Disturbance Sound-QtAudioOutput.

    2
    0 Votes
    2 Posts
    580 Views
    SGaistS
    Hi, Are you sure the files are correct ? Can you play them in another multimedia player ?
  • Installation of Qt with xcode 6 in mac

    6
    0 Votes
    6 Posts
    1k Views
    SGaistS
    You should not, no
  • Keep QDialog modeless widget on top of parent QMainWindow, Mac OS X

    3
    0 Votes
    3 Posts
    2k Views
    SGaistS
    Hi, Which version of Qt are you using ? On which version of OS X ?
  • 0 Votes
    8 Posts
    2k Views
    SGaistS
    Why delete it ? It can give a hint to another user experiencing the same problem as you. Just update the thread title prepending [solved] so other forum users may know a solution has been found :)